package com.jy.adscm.operation.mscyb.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-12-06
 */
public class JqdbMachinepackingdetail implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    private String tid;
    private String name;
    private String batchnums;
    private String typenums;
    private Double nums;
    private String unit;
    private String user;
    @TableField(exist = false)
    private String userName;
    private Date usertime;
    private Date createtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBatchnums() {
        return batchnums;
    }

    public void setBatchnums(String batchnums) {
        this.batchnums = batchnums;
    }

    public String getTypenums() {
        return typenums;
    }

    public void setTypenums(String typenums) {
        this.typenums = typenums;
    }

    public Double getNums() {
        return nums;
    }

    public void setNums(Double nums) {
        this.nums = nums;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getUsertime() {
        return usertime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setUsertime(Date usertime) {
        this.usertime = usertime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreatetime() {
        return createtime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "JqdbMachinepackingdetail{" +
                "id=" + id +
                ", tid='" + tid + '\'' +
                ", name='" + name + '\'' +
                ", batchnums='" + batchnums + '\'' +
                ", typenums='" + typenums + '\'' +
                ", nums=" + nums +
                ", unit='" + unit + '\'' +
                ", user='" + user + '\'' +
                ", userName='" + userName + '\'' +
                ", usertime=" + usertime +
                ", createtime=" + createtime +
                '}';
    }
}
